<template>
	<view>
		goodsDetail
	</view>
</template>

<script>
	export default {
		data() {
			return {
				goods_id:undefined,
				detail:{}
			};
		},
		onLoad({gid}) {
			this.goods_id = gid; 
		},
		methods: {
			async getGoodDetail() {
				let {data:{message,meta}} = await uni.$http.get(`/api/public/v1/goods/detail?goods_id=${this.goods_id}`);
				if(meta && meta.status == 200){
					this.detail = message;
				}else{
					uni.$showReqFailToast();
				}
			}
		},
	}
</script>

<style lang="scss">

</style>
